package com.flower.enjoyment.flower.mapper;

import com.flower.enjoyment.flower.entity.FlowerCardOrderDetail;
import com.flower.enjoyment.flower.entityDo.FlowerCardOrderDetailDo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

public interface FlowerCardOrderDetailMapper {
    int deleteByPrimaryKey(String id);

    int insert(FlowerCardOrderDetail record);

    int insertSelective(FlowerCardOrderDetail record);

    FlowerCardOrderDetailDo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(FlowerCardOrderDetail record);

    int updateByPrimaryKey(FlowerCardOrderDetail record);

    /**
     * 花享卡消费记录
     * @param userId
     * @return
     */
    Page<FlowerCardOrderDetailDo> getFlowerCardOrderListByPage(@Param("userId") String userId);
}